package com.qf.service;

import com.qf.dto.ResultBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * Created by IntelliJ IDEA.
 * User: dong
 * Date: 2020/3/13
 */
@Service
public class EmailRegisterService {

    @Autowired
    private RestTemplate restTemplate;

    public ResultBean emailActive(String email) {
        String uri = "http://SPRING-CLOUD-SERVICE-USER/user/emailActive?email="+email;
        return restTemplate.getForObject(uri,ResultBean.class);
    }
}
